import { Component } from '@vue/runtime-core'
import Layout from '@/components/layout/Layout.vue'
import { CustomRouteRecordRaw } from '@/types/router'

const pattern: Array<CustomRouteRecordRaw> = [
  {
    path: '/pattern',
    name: 'pattern',
    component: Layout,
    redirect: '/pattern/list',
    meta: {
      icon: 'home',
      title: '款式广场',
      permission: [1, 2, 3, 4, 5, 6]
    },
    children: [
      {
        path: 'list',
        name: 'AlbumList',
        component: (): Component => import('@/views/album/List.vue'),
        icon: 'home',
        hidden: true,
        meta: {
          title: '设计列表',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      },
      {
        path: 'detail',
        name: 'AlbumDetail',
        component: (): Component => import('@/views/album/Detail.vue'),
        hidden: true,
        meta: {
          title: '企业详情',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      },
      {
        path: 'add',
        name: 'AlbumAdd',
        component: (): Component => import('@/views/album/Add.vue'),
        hidden: true,
        meta: {
          title: '新增企业',
          permission: true,
          default: [1, 2, 3, 4, 5, 6]
        }
      }
    ]
  }
]

export default pattern
